/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ubbcluj.dbmanagementserver.model;

import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Bea
 */
@XmlType
public class Database {

    private String name;
    private List<Table> tableList;

    public Database(String name, List<Table> tableList) {
        this.name = name;
        this.tableList = tableList;
    }

    @XmlAttribute
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Table> getTableList() {
        return tableList;
    }

    @XmlElementWrapper
    @XmlElement(name = "table")
    public void setTableList(List<Table> tableList) {
        this.tableList = tableList;
    }

}
